package game.messages.log
{
	import engine.network.*;
	import flash.utils.*;
	
	public class RxLog_Message extends RxNetMessageBase
	{
		public var severity:uint;
		public var title:String;
		public var details:String;
		public static const INFO:uint = 2;
		public static const NONE:uint = 255;
		public static const TRACE:uint = 0;
		public static const WARNING:uint = 3;
		public static const ERROR:uint = 4;
		public static const DEBUG:uint = 1;
		public static const messageId:int = 45488;
		public static const fixedSize:Boolean = false;
		
		public function RxLog_Message()
		{
		}
		
		override public function GetBinarySize(param1:Number) : int
		{
			return GetSize_String(this.title) + GetSize_String(this.details) + 1;
		}
		
		override public function GetId() : int
		{
			return messageId;
		}
		
		override public function IsFixedSize() : Boolean
		{
			return false;
		}
		
		override public function ToBinary(param1:ByteArray, param2:Number) : void
		{
			Write_String(param1, this.details);
			Write_String(param1, this.title);
			Write_uint8(param1, this.severity);

		}
		
		override public function FromBinary(param1:ByteArray, param2:Number) : void
		{
			this.details = Read_String(param1);
			this.title = Read_String(param1);
			this.severity = Read_uint8(param1);
		}
	}
}